package com.acme.task5;

import java.util.Scanner;

public class TextModifier {

	public static void main(String[] args){
		System.out.println("Enter the text: ");
		Scanner scanner = new Scanner(System.in);
	String str=scanner.nextLine(); 
	int l=str.length();
	for (int i=0; i<l; i++){
		char a=str.charAt(i);
		if (Character.isDigit(a)){
			continue;	
		}
		System.out.print(a);
		if (a=='+'){
		System.out.print("+");
		}
		if (a=='-'){
		System.out.print("-");
		}
	}
}
}
